import { Module } from '@nestjs/common';
import { RolesService } from './roles.service';
import { RolesController } from './roles.controller';
import {Roles} from '../entity/roles.entity'
import { TypeOrmModule } from '@nestjs/typeorm';
import { AuthModule } from '../auth/auth.module';

@Module({
  //加了这句就好了好奇怪
  imports: [TypeOrmModule.forFeature([Roles]),
    AuthModule,],
  providers: [RolesService],
  controllers: [RolesController]
})
export class RolesModule {}
